package quiz6;

/**
 * Created by xujc on 7/14/15.
 */
public class ClassB implements InterfaceA {
    @Override
    public int method(int n) {
        int sum=0;
        for (int i = 1; i <= n; i++) {
            sum=sum*i;
        }
        return sum;
    }
}
